XConstants = new Object();
XConstants.SUCCESS = 0;
XConstants.ERROR = 1;
XConstants.UNKNOWN = 2;

XConstants.LOGIN_SUCCESS = 1000;
XConstants.LOGIN_FAILD = 1001;
XConstants.LOGIN_FAILD_PWD = 1002;
XConstants.LOGIN_FAILD_USER = 1003;

XConstants.RESPONSE_CODE = "code";

XConstants.OP_LOGIN = "login";
XConstants.OP_CHECK_LOGIN = "checkLogin";
XConstants.OP_GET_SNACKS = "getSnacks";
XConstants.OP_UPDATE_SNACK = "updateSnack";
XConstants.OP_GET_NEWS = "getNews";
XConstants.OP_ADD_NEWS = "addNews";

XConstants.TYPE_SNACK_GAIFAN = 1;
XConstants.TYPE_SNACK_JUANFAN = 2;
XConstants.TYPE_SNACK_TIANPIN = 3;
XConstants.TYPE_SNACK_YINPIN = 4;
XConstants.TYPE_SNACK_UNAVAILABLE = 10;